<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
int enLanguageId = 1 ;
FlashInfoDao headerFlashDao = new FlashInfoDao();
String flashChannelId = request.getParameter("flashChannelId");
String flashPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/" ;
if(StringUtils.isNotBlank(flashChannelId) && flashChannelId.matches("\\d+")){
	FlashInfo headerFlashInfo = new FlashInfoDao().getFlashByLgIdChannelId(enLanguageId,Integer.valueOf(flashChannelId));
	if(headerFlashInfo != null && StringUtils.isNotBlank(headerFlashInfo.getFlashPath())){
		flashPath += headerFlashInfo.getFlashPath();
	}else{
		flashPath += "static/images/default.swf" ;
	}
}else{
	flashPath += "static/images/default.swf" ;
}

%>

<%@page import="cn.com.chec.en.model.domain.FlashInfo,org.apache.commons.lang.StringUtils"%>
<%@page import="cn.com.chec.en.dao.FlashInfoDao"%>
<div class="banner" style="height:312px; overflow:hidden;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  width="965" height="317">
		  <param name="movie" value="<%=flashPath%>" />
		  <param name="quality" value="high" />
		  <param name="wmode" value="transparent" />
		  <embed src="<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()%>/static/images/banner.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  width="965" height="317"></embed>
		</object>
</div>